package homeWork.SOC3.mission_1.mycode;

/**
 * 这是学生描述实体类
 */
public class Student {

    //属性 --
    private String number;
    private String name;
    private String sex;
    private String date;
    private String Class;
    private String TEL;

    //行为 --
    public Student() {
    }

    public Student(String number, String name, String sex,
                   String date, String Class, String TEL) {
        this.number = number;
        this.name = name;
        this.sex = sex;
        this.date = date;
        this.Class = Class;
        this.TEL = TEL;
    }

    public String showStudentInfo() {
        return "学生信息:" + "\n" +
                "学号: " + number + " " +
                "名字: " + name + " " +
                "性别: " + sex + " " +
                "出生日期: " + date + " " +
                "班级: " + Class + " " +
                "联系电话: " + TEL;
    }
}
